
// const add = require('@/utils/index.js')
// const dayjs = require('dayjs')
import add from "@/utils/index.js"
const app = getApp()
Page({
  data:{
    loading:true
  },
  getUserOrder(){
    wx.request({
      url: 'http://127.0.0.1:3000/api/getorder',
      header:{
        token: wx.getStorageSync('access_token')
      },
      success(res){
        console.log(res.data)
      }
    })
  },

  clickCell(){
    console.log('点击了反馈')
  },

  onLoad(options) {
     console.log(app.globalData.baseUrl)
     console.log('add',add(100,4))

     // 两秒2页面数据加载完毕
     setTimeout(()=>{
       this.setData({
        loading:false
       })
     },2000)
  },
})